package com.bm.server.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bm.server.entity.UserInfo;
import org.apache.ibatis.annotations.Select;

import java.util.List;
//随机出来4个人
public interface RandomUserDao extends BaseMapper<UserInfo> {
    @Select("SELECT * FROM t_userinfo ORDER BY RAND() LIMIT 4")
    List<UserInfo> randomUser(long uid);
}
